Hello, <?=$name?> from Hello.view

<br /><br />
php 模板写法

<br /><br />
<?php if ($varIf): ?>
    $varIf 变量为 true
<?php else: ?>
    $varIf 变量为 false
<?php endif; ?>

<br /><br />
<?php for ($i = 0; $i < $varFor; $i++): ?>
    for $i: <?=$i?><br />
<?php endfor; ?>

<br />
<?php
foreach ($varForeach as $k => $v): ?>
    foreach $k: <?=$k?>, $v: <?=$v?><br />
<?php endforeach; ?>

